using System.ComponentModel.DataAnnotations;

namespace UniversalAdmin.Domain.Entities;

public class Message : BaseEntity
{
    public Guid ConversationId { get; set; }
    
    [Required]
    [MaxLength(50)]
    public string Role { get; set; } = string.Empty;
    
    [Required]
    public string Content { get; set; } = string.Empty;
    
    // Navigation property
    public virtual Conversation Conversation { get; set; } = null!;
}